package cn.kgc.vue.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName sys_log_info
 */
@TableName(value ="sys_log_info")
@Data
@ExcelTarget("logInfo")
public class LogInfo implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name="id")
    private Integer id;

    /**
     * 操作人
     */
    @TableField(value = "username")
    @Excel(name="操作人")
    private String username;

    /**
     * 用户ip   操作地点
     */
    @TableField(value = "ip")
    @Excel(name="用户ip ")
    private String ip;

    /**
     * 参数
     */
    @TableField(value = "params")
    @Excel(name="参数")
    private String params;

    /**
     * 资源路径
     */
    @TableField(value = "url")
    @Excel(name="资源路径")
    private String url;

    /**
     * 操作描述
     */
    @TableField(value = "description")
    @Excel(name="操作描述")
    private String description;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Excel(name="创建时间",exportFormat = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 操作模块
     */
    @TableField(value = "model")
    @Excel(name="操作模块")
    private String model;

    /**
     * 操作耗时
     */
    @TableField(value = "time_consuming")
    @Excel(name="操作耗时")
    private Integer timeConsuming;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}